import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';
import 'package:smart_devices/params/spare_part.dart';

class DeviceSpareScreenLogic extends GetxController {
  Rx<SparePartParams> params = Rx(SparePartParams());

  Rx<TextEditingController> typeController =
  Rx(TextEditingController(text: SparePartTypeEnum.all.label));

  Rx<TextEditingController> unitController =
  Rx(TextEditingController(text: SparePartTypeEnum.all.label));

  @override
  void onClose() {
    super.onClose();
    typeController.value.dispose();
    unitController.value.dispose();
  }
}
